package com.tarena.lbs.coupon.dao.repository;

import com.github.pagehelper.PageInfo;
import com.tarena.lbs.base.protocol.exception.BusinessException;
import com.tarena.lbs.coupon.pojo.param.CouponParam;
import com.tarena.lbs.coupon.pojo.po.CouponPO;
import com.tarena.lbs.coupon.pojo.po.UserCouponsPO;
import com.tarena.lbs.coupon.pojo.vo.CouponVO;
import com.tarena.lbs.coupon.pojo.vo.UserCouponsVO;

public interface CouponRepository {

    Integer save(CouponPO couponParam);

    PageInfo<CouponPO> pagesList(CouponParam couponParam);

    void UserCouponsSave(UserCouponsPO userCouponsPO);


    PageInfo<UserCouponsVO> pageUserCouponsList();

    void updateCouponStatus(CouponParam couponParam) throws BusinessException;

    void updateCoupon(CouponParam couponParam) throws BusinessException;

    void deleteCoupon(CouponParam couponParam);

    CouponVO detail(int CouponParam);
}
